<%@ page import="org.leaf.green.b2b.Market" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="main" />
    <title><g:message code="market.create" default="Create Market" /></title>
</head>
<body>
    <div class="nav">
        <span class="menuButton"><g:link class="list" action="list"><g:message code="market.list" default="Market List" /></g:link></span>
    </div>
    <div class="body">
        <h1><g:message code="market.create" default="Create Market" /></h1>
        <g:if test="${flash.message}">
        <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
        </g:if>
        <g:hasErrors bean="${marketInstance}">
        <div class="errors">
            <g:renderErrors bean="${marketInstance}" as="list" />
        </div>
        </g:hasErrors>
        <g:form action="save" method="post" >
            <g:render template="/b2b/market/edit" />
            <div class="buttons">
                <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}" /></span>
            </div>
        </g:form>
    </div>
</body>
</html>
